package com.wh1200.mybatis.xmlless.util

import org.apache.ibatis.type.TypeAliasRegistry

/**
 * Created by 吴昊 on 2023/12/11.
 */
object TypeUtil {

  private var registry: TypeAliasRegistry = TypeAliasRegistry()

  fun <T> resolve(str: String): Class<T> {
    return registry.resolveAlias(str)
  }

  fun register(clazz: Class<*>) {
    registry.registerAlias(clazz)
  }

}
